package com.sc.VenusQueryBeta.contract.login;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.login.ChangePwdBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/11/12.
 */

public interface ForgotNextContract {
    abstract class ForgotNextPresenter extends BasePresenter<IForgotNextModel,IForgotNextView>{
        public abstract void forgot(String id, String newPassword);
    }
    interface IForgotNextModel extends IBaseModel{
        Observable<ChangePwdBean> forgotpwd(String id, String newPassword);
    }
    interface IForgotNextView extends IBaseActivity{
        /**
         * 修改密码
         * @param changePwdBean
         */
        void showChangePwdSuccess(ChangePwdBean changePwdBean);

        void showNetworkError();
    }
}
